from flask import Blueprint, current_app

html = Blueprint("html", __name__)


@html.route("/<re('.*'):file_name>")
def get_html_file(file_name):

    if not file_name:
        file_name = "index.html"
    if file_name != "favicon.ico":
        file_name = "html/" + file_name
        # csrf_token = generate_token()
    return current_app.send_static_file(file_name)